import request from '@/utils/request'

// 查询积分变动明细列表
export function listPointRecords(query) {
  return request({
    url: '/core/pointRecords/list',
    method: 'get',
    params: query
  })
}

// 查询积分变动明细详细
export function getPointRecords(id) {
  return request({
    url: '/core/pointRecords/' + id,
    method: 'get'
  })
}

// 新增积分变动明细
export function addPointRecords(data) {
  return request({
    url: '/core/pointRecords',
    method: 'post',
    data: data
  })
}

// 修改积分变动明细
export function updatePointRecords(data) {
  return request({
    url: '/core/pointRecords',
    method: 'put',
    data: data
  })
}

// 删除积分变动明细
export function delPointRecords(id) {
  return request({
    url: '/core/pointRecords/' + id,
    method: 'delete'
  })
}
